<admintpl file="header" />

</head>
<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('department/index')}">单位管理</a></li>
            <li class="active"><a href="{:U('department/add')}">添加单位</a></li>
        </ul>
        <form method="post" class="form-horizontal " action="{:U('Department/add_post')}">

            <div class="form-group">
                <label class="col-md-2 control-label">
                    单位名称<span class="required" aria-required="true"> * </span>
                </label>
                <div class="col-md-6">
                    <input type="text" class="form-control" name="department_name" placeholder="请输入单位名称" required>
                </div>
            </div>
            <div class="form-group">

                <label class="col-md-2 control-label">单位简称</label>
                <div class="col-md-6">
                    <input type="text" class="form-control" name="department_code" placeholder="请输入单位简称" required>
                </div>

            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">单位等级</label>
                <div class="col-md-6">
                    <select name="department_role" class="form-control">
                        <foreach name="roles" item="vo">
                            <option value="{$vo.id}">{$vo.name}</option>
                        </foreach>
                    </select>
                </div>
            </div>
            <div class="form-actions col-md-10 col-md-offset-2">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">{:L('BACK')}</a>
            </div>


        </form>

        
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>